<template>
  <div class="header">
    <div class="header-input">
      <input type="text" class="iconfont search" :placeholder="searchicon"/>
    </div>
    <div class="header-right">
        <span class="iconfont scan">&#xe620;</span>
    </div>
  </div>
</template>

<script>
export default {
  name: "HomeHeader",
  data:function(){
    return{
      searchicon:'\ue629 前端'
    }
  }
};
</script>

<style lang='scss' scope>
@import '~styles/varibles.styl';
.header {
  position: relative;
  display: flex;
  height: 1rem;
  z-index: 99;
  // background-color: $bgColor;
  .header-input {
    flex: 1;
    display:flex; 
    justify-content:center; //内容水平居中 
    align-items:center; //内容垂直居中 
    // background-color:red; 
    .search {
      width: 80%;
      height: 80%;
      text-align: center;
      border-radius: 0.4rem;
      font-size: 0.4rem;
      padding: 0 0.5rem;
    }
    // border: 1px solid blue;
  }
  .header-right {
    width: 1rem;
    display:flex; 
    justify-content:center; //内容水平居中 
    align-items:center; //内容垂直居中 
    .scan{
        margin-right: 0.3rem;
        font-size: 0.5rem;
        font-weight: 600;
        color: $bgColor;
    }
  }
}
</style>